-- GENERATED SPELL FOR [Bloodscalp Mystic] --


function spell0_701(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_701', 578, 1)
end

function spell1_701(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_701', 3000, 1)
end

function spell2_701(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_701', 3000, 1)
end

function spell3_701(pUnit, Event) --@Quick Flame Ward,n/a--
pUnit:FullCastSpellOnTarget(4979,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_701', 11500, 1)
end

function Sorts_701(pUnit, Event)
local choix_sorts_701 = math.random(0, 3)
if choix_sorts_701 == 0 then
pUnit:RegisterEvent('spell0_701', 1, 1)
end
if choix_sorts_701 == 1 then
pUnit:RegisterEvent('spell1_701', 1, 1)
end
if choix_sorts_701 == 2 then
pUnit:RegisterEvent('spell2_701', 1, 1)
end
if choix_sorts_701 == 3 then
pUnit:RegisterEvent('spell3_701', 1, 1)
end
end

function mob701_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_701', math.random(1500, 3000), 1)
end

function mob701_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob701_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob701_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(701, 1, 'mob701_Action')
RegisterUnitEvent(701, 2, 'mob701_Leave')
RegisterUnitEvent(701, 3, 'mob701_Kill')
RegisterUnitEvent(701, 4, 'mob701_Die')
